using System;
public class ParamTest{
    public void para( params int[] ary ){
        Console.writeLine("\n数组中包含{0}个元素:",ary.Length);
        for(int t = 0;t<ary.Length;t++){
            ary[t]++;
            Console.write("\t{0}",ary[t]);
        }
    }
    public static void Main(){
        int m =1,n = 2,p = 3,q = 4;
        ParamTest app = new ParamTest();
        int[] testArr = new int[]{m,n,5};
        Console.writleLine("调用方法之前的数组元素值为:");
        foreach(int t in testArr){
            console.write("\t{0}",t);
        }
        app.para(testArr);
        console.writeLine("\n调用方法之后的数组元素值为:");
        foreach(int t in testArr){
            console.write("\t{0}",t);
        }
        app.para(m,n,p,q);
        console.writeLine();
        
    }
}